#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_dark_clicked()
{
    this->setStyleSheet("background-color:#333;");
    ui->textEdit->setStyleSheet("background-color:#333;color:#fff;");
    ui->pushButton_day->setStyleSheet("color:#fff;");
    ui->pushButton_dark->setStyleSheet("color:#fff;");
}

void Widget::on_pushButton_day_clicked()
{
    this->setStyleSheet("background-color:#f3f3f3;color:#f3f3f3;");
    ui->textEdit->setStyleSheet("background-color:#fff;color:#000;");
    ui->pushButton_day->setStyleSheet("color:#000;");
    ui->pushButton_dark->setStyleSheet("color:#000;");
}
